package com.yangxc.core.datasource.annotation;

import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
import com.yangxc.core.datasource.config.DynamicDataSourceAutoConfig;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

/**
 * @author yangxc
 * @version 1.0.0
 * @ClassName EnableDynamicDataSource.java
 * @Description TODO
 * @createTime 2021年07月21日 17:07:00
 */
@Documented
@Inherited
@Target({ ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
@EnableAutoConfiguration(exclude = { DruidDataSourceAutoConfigure.class })
@Import(DynamicDataSourceAutoConfig.class)
public @interface EnableDynamicDataSourceToDb {
}
